from django.db import models

class HikInfo(models.Model):
    openid = models.CharField(max_length=50)
    door_id = models.CharField(max_length=50, blank=True, null=True)
    groupid = models.CharField(max_length=50, blank=True, null=True)
    door_name = models.CharField(max_length=50, blank=True, null=True)
    about_id = models.IntegerField(blank=True, null=True)
    about_name = models.CharField(max_length=50, blank=True, null=True)

    class Meta:
        db_table = 'hik_info'

class EzvizInfo(models.Model):
    openid = models.CharField(max_length=255, blank=True, null=True)
    zone_id = models.IntegerField(blank=True, null=True)
    ezviz_name = models.CharField(max_length=255, blank=True, null=True)
    appkey = models.CharField(max_length=255, blank=True, null=True)
    secret = models.CharField(max_length=255, blank=True, null=True)
    deviceserial = models.CharField(max_length=255, blank=True, null=True)

    class Meta:
        db_table = 'ezviz_info'